]> git.r.bdr.sh - rbdr/map/blame - Map/Core Extensions/Date+format.swift
Update to support notes + new style
[rbdr/map] / Map / Core Extensions / Date+format.swift
CommitLineData
1b85f723
RBR
1//
2// Date+format.swift
3// Map
4//
5// Created by Ruben Beltran del Rio on 2/1/21.
6//
7
8import Foundation
9
10extension Date {
5e8ff485
RBR
11 func format() -> String {
12 let formatter = DateFormatter()
13 formatter.dateStyle = .short
14 formatter.timeStyle = .medium
15 return formatter.string(from: self)
16 }
1b85f723 17}